import React,{Component} from "react";
import {Link} from "react-router-dom";

export default class PostList extends Component{
    constructor(props) {
        super(props);
        this.state={

        }
    }
    render() {
        let {children}=this.props
        return (
            <div id="postList">
                {
                    new Array(16).fill(false).map((item,index)=><Link to={`/post/${index+1}`} key={index}>{`post${index+1}`}</Link>)
                }
                {children}
            </div>
        )
    }
}